package org.example.lambda;

import java.util.function.IntUnaryOperator;

public class Demo {
    public static void main(String[] args) {
        // method(-666, n -> Math.abs(n));
        method(-666, Math::abs);
    }

    private static void method(int num, IntUnaryOperator funcInterface) {
        System.out.println(funcInterface.applyAsInt(num));
    }
}
